export function timeTips(){
    let d = new Date();
    let n = d.getHours();
    let str=''
    console.log('n'+n);
    if(n<12){
      str='上午好!'
    }else if(n>=12&&n<18){
      str='下午好!'
    }else if(n>=18){
      console.log('晚上');
      str='晚上好!'
    }
    console.log(str);
    return str
  }

  export function getTime(time){
    var date = new Date(time)
    var y = date.getFullYear();
    var m = date.getMonth() + 1;
    var d = date.getDate();
    var str = `${y}年${m}月${d}日`
    return str
}